package cn.kxm.service;

import java.util.List;
import java.util.Map;

import cn.kxm.pojo.Acl;
import cn.kxm.pojo.Model;
import cn.kxm.pojo.Role;

public interface PowerService {
	public List<Map<String, Object>> findone();
	public List<Map<String, Object>> findtwo(Integer parentId);
	public List<Map<String, Object>> findthree(Integer parentId,Integer roleId);
	
	public List<Map<String, Object>> findrole(Integer id,String roleName,
			Integer page,Integer size);
	
	public int getCount(Integer id,String roleName);
	public int getid();
	public List<Role> getlist();
	public int add(Role r);
	public Map<String, Object> getoneById(Integer id);
	public int modifyRole(Role r); 
	public int delete(Integer id);
	public int deleteAcl(Integer rid);
	public int insert(Integer rid,Integer modelid);
	
	public Acl check(Integer rid,String url);
	public Model checkid(String url);
	public Acl checkmid(Integer mid,Integer rid);
}
